]> dgit.raspbian.org Git - gnome-shell.git/commit
fileUtils: Add helper for loading D-Bus XML from resource
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 6 Sep 2018 00:04:47 +0000 (02:04 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Mon, 17 Sep 2018 07:34:49 +0000 (07:34 +0000)
commitf42d9df3e0cb6b58657edeba0f2f7b2d6629cf92
treecc4d7d18ce9f3008820959729dc594af2dacceed
parent150a640c663daf6c7d9898e80d482f0e869c348d
fileUtils: Add helper for loading D-Bus XML from resource

Commit dbf993300a moved all inline D-Bus interface descriptions to template
strings so we can stop escaping line breaks.

Unfortunately that unveiled a grave bug in xgettext, which currently cannot
handle files that contain both backtick and slash characters - as a result,
translations from affected files have started to disappear as translators
run xgettext/msgmerge.

Instead of reverting the change and getting the crusty escaping back, we
will take this as an opportunity to stop inlining the XML altogether and
load it from a resource instead.

To facilitate that, add a small helper method that loads a D-Bus interface
description from a dedicated resource bundle.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/537
data/gnome-shell-dbus-interfaces.gresource.xml [new file with mode: 0644]
data/meson.build
js/misc/config.js.in
js/misc/fileUtils.js